package org.jeecg.modules.clues.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.clues.entity.Clues;
import org.jeecg.modules.clues.mapper.CluesMapper;
import org.jeecg.modules.clues.service.ICluesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 线索管理
 * @Author: jeecg-boot
 * @Date:   2020-05-04
 * @Version: V1.0
 */
@Service
public class CluesServiceImpl extends ServiceImpl<CluesMapper, Clues> implements ICluesService {

    @Autowired
    CluesMapper cluesMapper;

    @Override
    public List<Map<String, Object>> initKeywordList() {
        return cluesMapper.initKeywordList();
    }

    @Override
    public void clearOutTimeClues() {
        cluesMapper.clearOutTimeClues();
    }

    @Override
    public IPage<Clues> selectCluesPage(Page<Clues> page, Wrapper<Clues> queryWrapper) {
        return cluesMapper.selectCluesPage(page,queryWrapper);
    }

    @Override
    public List<String> getAllKeyword() {
        return cluesMapper.getAllKeyword();
    }


}
